#ifndef __COND_H__
#define __COND_H__

#include "MutexLock.h"

namespace tp
{

class Cond : Noncopyable
{
public:
    Cond(MutexLock&);
    ~Cond();

    void wait();
    void notify();
    void notifyall();
private:
    pthread_cond_t _cond;
    MutexLock& _mutex;
};

}

#endif
